{% extends "user/base.html" %}{% load i18n %} 
{% block title %}{% trans "change passwod" %}{% endblock %} 
{% block content %}

<form action="." method="post">
	{% if form.error_dict %}
	<p class="error">
		{% trans "Please correct the errors below." %}
	</p>
	{% endif %}
	<br />
	<table>

		<tr>
			<td>
				<label for="old_password">
					{% trans "old Password:" %}
				</label>
			</td>
			<td>
				{{ form.old_password }}
			</td>
			<td>
				{% if form.old_password.errors %} {{form.old_password.errors.0}} {% endif %}
			</td>
		</tr>

		<tr>
			<td>
				<label for="new_password1">
					{% trans "new password:" %}
				</label>
			</td>
			<td>
				{{ form.new_password1 }}
			</td>
			<td>
				{% if form.new_password1.errors %} {{form.new_password1.errors.0}} {% endif %}
			</td>
		</tr>
		<tr>
			<td>
				<label for="new_password2">
					{% trans "New password confirmation:" %}
				</label>
			</td>
			<td>
				{{ form.new_password2 }}
			</td>
			<td>
				{% if form.new_password2.errors %} {{form.new_password2.errors.0}} {% endif %}
			</td>
		</tr>

	</table>
	<input type="submit" value="{% trans "Change Password" %}" />
	</label>
	{% endblock %}